package com.qububu.emporium.search.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qububu.db.dao.SearchInfoDao;
import com.qububu.emporium.goods.dto.GoodsInfoDto;
import com.qububu.emporium.search.dto.HotSearchWordDto;
import com.qububu.emporium.search.service.SearchService;

/**
 * @功能 
 * 
 * @详情
 * */
@Service
public class SearchServiceImpl implements SearchService {
	
	@Resource
	private SearchInfoDao searchInfoDao;

	/**
	 * @author HQ
	 * 
	 * @功能 热词查找
	 */
	public List<HotSearchWordDto> getSearchInfoByHotWord() {
		// TODO Auto-generated method stub
		List<HotSearchWordDto> hotList = searchInfoDao.getSearchInfoByHotWord();
		
		return hotList;
	}

	public List<GoodsInfoDto> getSearchInfoByKeyWord(String keyWord) {
		// TODO Auto-generated method stub
		List<GoodsInfoDto> keyList = searchInfoDao.getSearchInfoByKeyWord(keyWord);
		
		return keyList;
	}

}
